package com.ziyun.pop.modules.logistics.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ziyun.pop.modules.logistics.entity.ErpLogisticsEntity;
import com.ziyun.pop.modules.logistics.vo.ErpLogisticsVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 物流配送表
 * 
 * @author llc
 * @email 787254039@qq.com
 * @date 2018-10-10 19:05:19
 */
public interface ErpLogisticsDao extends BaseMapper<ErpLogisticsEntity> {

    int countsFinanceList(@Param("map") Map<String, Object> map);

    List<ErpLogisticsVo> queryFinanceList(@Param("beginPage") int beginPage, @Param("size") int size, @Param("map") Map<String,Object> map);

    void updateByMap(@Param("map") Map<String,Object> map, @Param("logiId")Long logiId);

    ErpLogisticsEntity selectErpLogisticsById(Long logiId);

    int updateBatchByMap(@Param("map") Map<String, Object> map, @Param("logiIds") Integer[] logiIds);

    Double sumLogiCost(@Param("map") Map<String, Object> map);

    List<ErpLogisticsEntity> selectListByLogiIds(@Param("logiIds") Integer[] logiIds);
}
